<#include "/common/layout.html"> 
<@layout>
<script type="text/javascript" src="/js/easyui/easyui_grid.js"></script>
<script type="text/javascript">
var model_name = "/goods";
var model_title="公共商品";
var datagrid;
	$(function() {
		$("#edit_categoryId").combobox({
			url: '/category/combobox/',    
			valueField:'id',    
		    textField:'name',
		    width:150
		});	
		
		datagrid=$('#form_datagrid').datagrid({
		 	url:model_name+'/grid',
		 	columns:[[    
		        {field:'id',title:'编号',width:100,checkbox:true},
		        {field:'categoryName',title:'类别',width:120},
		        {field:'name',title:'商品名称',width:180},
		        /* {field:'price',title:'价格(元)',width:100}, */
		        {field:'icon',title:'商品logo',width:210,
		        formatter:function(value,row,index){
		        	if(value)
		        	return "<span url='"+value+"' style='cursor:pointer;color:blue;'  onmouseover='hoverShow(this);'onmouseout='$(\"#imgShow\").hide();'>"+value+"</span>";
		        }},
		        {field:'created_time',title:'创建时间'}
		    ]]
		});
		
	})
</script>
<script type="text/javascript" src="/js/easyui/easyui_grid_common.js"></script>
</head>
<#include "/common/seach.html" />
<@seach>
<td>所属分类</td>
<td><input id="edit_categoryId" name="EQ_c.id"></td> 
<td>商品名</td>
<td><input type="text" name="LIKE_g.name"></td>
</@seach>
</@layout>